package com.turing.merchant.service;

import com.alibaba.fastjson.JSONObject;
import com.turing.merchant.entity.Good;
import com.baomidou.mybatisplus.extension.service.IService;
import result.Result;

import java.text.ParseException;

/**
* @author 28123
* @description 针对表【good(商品)】的数据库操作Service
* @createDate 2023-05-09 20:31:20
*/
public interface GoodService extends IService<Good> {

    Result geGoodById(String id);

    Result myGoodList(String merchantId, String gdId, Integer cgState,String gdCreateTime, Integer pageNum, Integer pageSize);

    Result goodList(String merchantName, String gdName, Integer priceType, Integer gdState, Integer pageNum, Integer pageSize);

    boolean checkGdName(String gdName, String merchantId, String gdId);

    Result deleteByIds(String[] ids);

    Result downShelf(JSONObject jsonObject);

    Result goodListByIds(String[] ids);

    Result goodListForPhone(String categoryId, Integer cdType, String longitude, String latitude, Integer orderType, Integer cityId, String orderState, Integer pageNum, Integer pageSize);

    Result goodEdit(JSONObject jsonObject);

    Result buyGood(JSONObject jsonObject) throws ParseException;

    Result useGood(JSONObject jsonObject);
}
